﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HCDV;

namespace hrainwebbase.basecs
{
    public class PageBase :System.Web.UI.Page
    {
        /// 员工号：唯一标识当前用户
        /// </summary>
        public string Empid = "-1";

        /// <summary>
        /// 当前员工姓名
        /// </summary>
        public string EmpName = "";

        public string DepName = "";

        public string OrgName = "";
/// <summary>
        /// 页面初始函数
        /// </summary>
        /// <param name="fName">模块名称</param>
        /// <param name="isChecked">是否验证</param>
        public void PageBegin(string fName, bool isChecked)
        {
            LoginUser l = (LoginUser)Session["LoginUser"];
            if (l == null) return;
            this.Empid = l.UserId;
            this.EmpName = l.UserName;
            DepName = l.UserDepName;
            OrgName = l.UserOrgName;
        }
    }
}